PrintListOfLines

data class PrintListOfLines(val listOfLines: List<PrintLineObject>) : PrintObject

A data class representing a print request to print a list of lines based on paper width. The list of lines is provided as a list of PrintLineObject instances, each representing a single line to print. If the data exceeds the maximum characters allowed on one line, a PrintResult failure will be returned.

Return

PrintResult - Status.Success or Status.Failure with an optional message.

Parameters

listOfLines

A list of PrintLineObject instances, each representing a single line to print. Properties of each PrintLineObject: data, fontSize, typeface, textAlignment, isBold, isItalic, isUnderline

Constructors

Link copied to clipboard
constructor(listOfLines: List<PrintLineObject>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

The type of the print object (e.g., LINE, EMPTY_LINE, etc.).

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)